package com.tinem.platform.module.pojo.vo.channel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className ClientChannelDetailsInfo
 * @description
 * @site
 * @company
 * @create 2021-11-03 12:15
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("客户度渠道信息表")
public class ClientChannelDetailsInfo {

    @ApiModelProperty(name = "clietId", value = "客户端id;主键,必须唯一,不能为空.用于唯一标识每一个客户端(client); 在注册时必须填写(也可由服务端自动生成).对于不同的grant_type,该字段都是必须的. 在实际应用中的另一个名称叫appKey,与client_id是同一个概念.",required = true)
    private String clietId;

    @ApiModelProperty(name = "clientName", value = "客户端名称",required = true)
    private String clientName;

    @ApiModelProperty(name = "resourceIds", value = "资源id",required = true)
    private String resourceIds;

    @ApiModelProperty(name = "clientSecret", value = "客户端访问证书;",required = true)
    private String clientSecret;

    @ApiModelProperty(name = "scope", value = "范围",required = true)
    private String scope;

    @ApiModelProperty(name = "authorizedGrantTypes", value = "授权方式;",required = true)
    private String authorizedGrantTypes;

    @ApiModelProperty(name = "webServerRedirectUri", value = "返回地址",required = true)
    private String webServerRedirectUri;

    @ApiModelProperty(name = "authorities", value = "权限",required = true)
    private String authorities;

    @ApiModelProperty(name = "accessTokenValidity", value = "访问token有效期",required = true)
    private Integer accessTokenValidity;

    @ApiModelProperty(name = "refreshTokenValidity", value = "刷新token有效期",required = true)
    private Integer refreshTokenValidity;

    @ApiModelProperty(name = "additionalInformation", value = "预留字段",required = false)
    private String additionalInformation;

    @ApiModelProperty(name = "autoapprove", value = "自动授权",required = true)
    private String autoapprove;

    @ApiModelProperty(name = "revision", value = "乐观锁",required = false)
    private Integer revision;

    @ApiModelProperty(name = "createdBy", value = "创建人",required = false)
    private String createdBy;

    @ApiModelProperty(name = "createdTime", value = "创建时间",required = false)
    private Date createdTime;

    @ApiModelProperty(name = "updatedBy", value = "更新人",required = false)
    private String updatedBy;

    @ApiModelProperty(name = "updatedTime", value = "更新时间",required = false)
    private Date updatedTime;
}
